package cn.com.cfae.iras.doc.analyze.parse.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

//已完工项目情况
public class YWGXMModel extends BizBaseModel {
    public static String MODEL_NAME = "YWGXM";
    /**
     * 项目主体
     */
    public static String XMZT = "XMZT";

    /**
     * 项目名称
     */
    public static String XMMC = "XMMC";

    /**
     * 项目类别
     */
    public static String XMLB = "XMLB";

    /**
     * 项目所在地
     */
    public static String XMSZD = "XMSZD";

    /**
     * 已销售总额
     */
    public static String YXSZE = "YXSZE";

    /**
     * 销售进度
     */
    public static String XSJD = "XSJD";

    /**
     * 回款情况
     */
    public static String HKQK = "HKQK";

    /**
     * 项目批文
     */
    public static String XMPW = "XMPW";

    /**
     *建设期间
     */
    public static String JSQJ = "JSQJ";

    /**
     * 回购期间
     */
    public static String HGQJ = "HGQJ";

    /**
     * 总投资额
     */
    public static String ZTZE = "ZTZE";

    /**
     * 已投资额
     */
    public static String YTZE = "YTZE";

    /**
     * 是否签订合同或协议
     */
    public static String QDHTHXY = "QDHTHXY";

    /**
     * 拟回购金额
     */
    public static String NHGJE = "NHGJE";

    /**
     * 已回购金额
     */
    public static String YHGJE = "YHGJE";

    /**
     * 未来三年回购计划
     */
    public static String WLHGJH = "WLHGJH";

    /**
     * 是否按照合同或协议执行回款情况
     */
    public static String ZXHK = "ZXHK";

    private static Map<String, String> items = new HashMap<>();
    static {
        items.put(XMZT,"项目主体");
        items.put(XMMC,"项目名称");
        items.put(XMLB,"项目类别");
        items.put(XMSZD,"项目所在地");
        items.put(YXSZE,"已销售总额|销售总额");
        items.put(XSJD,"销售进度");
        items.put(HKQK,"回款情况");
        items.put(XMPW,"项目批文|批文情况|项目批文情况");
        items.put(JSQJ,"建设期间");
        items.put(HGQJ,"回购期间");
        items.put(ZTZE,"总投资额");
        items.put(YTZE,"已投资额");
        items.put(QDHTHXY,"是否签订合同或协议|是否签署回购合同");
        items.put(NHGJE,"拟回购金额");
        items.put(YHGJE,"已回购金额");
        items.put(WLHGJH,"未来三年回购计划");
        items.put(ZXHK,"是否按照合同或协议执行回款情况|是否按合同执行回购情况|是否按合同执行回购");

    }

    public static List<ExtractItem> createExtractItemList() {
        List<ExtractItem> extractItemList = new ArrayList<>();
        items.forEach((key, value) -> {
            ExtractItem extractItem = new ExtractItem();
            extractItem.setItemName(key);
            extractItem.setSynonyms(value.split(SYNONYM_SPLIT_CHAR));
            extractItemList.add(extractItem);
        });
        return extractItemList;
    }


}
